#!/bin/bash -ex

if [ -f configure ]; then
    make distclean
fi

rm -rf build
mkdir build
cd build

../autogen.sh c
make -j
make install
